package VUTHANHPHUC_HOMEWORK_ARRAY;

public class Models03 {
	private double min;
	private int local;
	private int count;

	public double MIN(double[] A, int n) {
		min = A[1];
		for (int i = 2; i <= n; i++) {
			if (A[i] <= min) {
				min = A[i];
			}
		}
		return min;
	}

	public int LOCAL(double[] A, int n) {
		for (int i = 2; i <= n; i++) {
			if (A[i] == min) {
				local = i;
				count = count + 1;
			}
		}
		return local;
	}
}
